home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1999 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'kpCntn.pas' rev: 4.00
-
- #ifndef kpCntnHPP
- #define kpCntnHPP
-
- #pragma delphiheader begin
- #pragma option push -w-
- #include <SysUtils.hpp> // Pascal unit
- #include <Classes.hpp> // Pascal unit
- #include <Windows.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Kpcntn
- {
- //-- type declarations -------------------------------------------------------
- typedef int tOLSize;
-
- typedef void *TObjects[536870911];
-
- typedef void * *pObjects;
-
- class DELPHICLASS TObjectList;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TObjectList : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- bool FDestroy;
- void * *FList;
- int FCount;
- int FCapacity;
-
- protected:
- virtual void __fastcall Error(void);
- virtual void __fastcall Grow(void);
- virtual void __fastcall Put(int Index, System::TObject* Item);
- System::TObject* __fastcall Get(int Index);
- void __fastcall SetCapacity(int NewCapacity);
- void __fastcall SetCount(int NewCount);
- void * __fastcall Allocate(int Size);
- virtual void __fastcall FreeItem(void * AnItem);
-
- public:
- __fastcall TObjectList(void);
- __fastcall TObjectList(bool DestroyObjects, int InitialCapacity);
- __fastcall virtual ~TObjectList(void);
- virtual int __fastcall AddObject(System::TObject* Item);
- virtual void __fastcall Clear(void);
- void __fastcall Delete(int Index);
- void __fastcall DeleteAll(void);
- void __fastcall FreeAll(void);
- void __fastcall FreeAt(int Index);
- void __fastcall FreeObject(System::TObject* Item);
- virtual int __fastcall IndexOf(System::TObject* Item);
- virtual void __fastcall Insert(int Index, System::TObject* Item);
- void __fastcall Move(int CurIndex, int NewIndex);
- void __fastcall Pack(void);
- __fastcall TObjectList(const AnsiString FileName);
- void __fastcall SaveToStream(const AnsiString FileName);
- void __fastcall LoadFromStream(const AnsiString FileName);
- virtual void __fastcall ReadData(Classes::TStream* S);
- virtual void __fastcall WriteData(Classes::TStream* S);
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual System::TObject* __fastcall First(void);
- virtual System::TObject* __fastcall Last(void);
- virtual System::TObject* __fastcall Next(System::TObject* Item, bool Forward);
- void __fastcall ForEach(void * Action);
- System::TObject* __fastcall LastThat(void * Test);
- System::TObject* __fastcall FirstThat(void * Test);
- __property int Capacity = {read=FCapacity, write=SetCapacity, nodefault};
- __property System::TObject* Items[int Index] = {read=Get, write=Put/*, default*/};
- __property int Count = {read=FCount, nodefault};
- __property bool DestroyObjects = {read=FDestroy, write=FDestroy, nodefault};
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS TAbsMemStream;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TAbsMemStream : public Classes::TStream
- {
- typedef Classes::TStream inherited;
-
- private:
- void *FMemory;
- int FSize;
- int FPosition;
-
- public:
- __fastcall TAbsMemStream(void * UseBuf, int MaxSize);
- virtual int __fastcall Read(void *Buffer, int Count);
- virtual int __fastcall Write(const void *Buffer, int Count);
- virtual int __fastcall Seek(int Offset, Word Origin);
- __property int Position = {read=FPosition, nodefault};
- __property void * Memory = {read=FMemory};
- __property int Size = {read=FSize, nodefault};
- public:
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~TAbsMemStream(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS TSortedObjectList;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TSortedObjectList : public TObjectList
- {
- typedef TObjectList inherited;
-
- private:
- Classes::TDuplicates FDuplicates;
-
- protected:
- virtual void * __fastcall KeyOf(System::TObject* Item);
- virtual void __fastcall Put(int Index, System::TObject* Item);
-
- public:
- __fastcall TSortedObjectList(Classes::TDuplicates WithDuplicates);
- virtual void __fastcall ReadData(Classes::TStream* S);
- virtual void __fastcall WriteData(Classes::TStream* S);
- virtual int __fastcall Compare(void * Key1, void * Key2) = 0 ;
- virtual int __fastcall AddObject(System::TObject* Item);
- virtual bool __fastcall Search(void * Key, int &Index);
- virtual void __fastcall Insert(int Index, System::TObject* Item);
- virtual int __fastcall IndexOf(System::TObject* Item);
- __property System::TObject* Items[int Index] = {read=Get};
- __property Classes::TDuplicates Duplicates = {read=FDuplicates, nodefault};
- public:
- #pragma option push -w-inl
- /* TObjectList.CreateWithOptions */ inline __fastcall TSortedObjectList(bool DestroyObjects, int InitialCapacity
- ) : TObjectList(DestroyObjects, InitialCapacity) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObjectList.Destroy */ inline __fastcall virtual ~TSortedObjectList(void) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObjectList.CreateFromStream */ inline __fastcall TSortedObjectList(const AnsiString FileName) :
- TObjectList(FileName) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- //-- var, const, procedure ---------------------------------------------------
- static const int cMaxList = 0x1fffffff;
- extern PACKAGE void __fastcall DoRegisterClass(const void * LoadProc, const void * StoreProc, TMetaClass*
- Sender);
- extern PACKAGE bool __fastcall IsRegistered(TMetaClass* AClass);
- extern PACKAGE System::TObject* __fastcall CopyOf(System::TObject* Source);
- extern PACKAGE System::TObject* __fastcall ReadObjectFromStream(Classes::TStream* S);
- extern PACKAGE void __fastcall WriteObjectToStream(System::TObject* Source, Classes::TStream* S);
- extern PACKAGE Word __fastcall RegisterClipBoardType(const AnsiString TypeName);
- extern PACKAGE bool __fastcall CopyObjectToClipboard(Word ClipType, System::TObject* Source);
- extern PACKAGE System::TObject* __fastcall PasteObjectFromClipboard(Word ClipType);
-
- } /* namespace Kpcntn */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Kpcntn;
- #endif
- #pragma option pop // -w-
-
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // kpCntn
-